package com.hunter.ie.user.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.hunter.ie.user.resp.UserResp;

@Controller
public class UserController {

    @RequestMapping("/json/user/findUser")
    @ResponseBody
    public UserResp findUser(@RequestParam("id")Long id){
        UserResp resp = new UserResp();
        resp.setName("hunter-chen");
        resp.setPhone("187-8195-7297");
        return resp;
    }
}
